#ifndef GROUPUSER_HPP
#define GROUPUSER_HPP

#include <string>
#include "user.hpp"
using namespace std;

class GroupUser : public User{
    public:
        GroupUser(int userid = -1,int groupid = -1,string role = "normal")
            : User(userid,"","",""),
            grouprole(role),
            groupid(groupid)
        {}

        void setGroupId(int groupid){
            this->groupid = groupid;
        }

        void setRole(string role){
            this->grouprole = role; 
        }

        int getGroupId(){
            return groupid;
        }

        string getRole(){
            return grouprole;
        }
    private:
        int groupid;
        string grouprole;
};

#endif